import request from '@/utils/request'

// 查询用户密保申诉列表
export function listUserCaAppeal(query) {
  return request({
    url: '/receipt/userCaAppeal/list',
    method: 'get',
    params: query
  })
}

// 查询用户密保申诉详细
export function getUserCaAppeal(id) {
  return request({
    url: '/receipt/userCaAppeal/' + id,
    method: 'get'
  })
}

// 新增用户密保申诉
export function addUserCaAppeal(data) {
  return request({
    url: '/receipt/userCaAppeal',
    method: 'post',
    data: data
  })
}

// 修改用户密保申诉
export function updateUserCaAppeal(data) {
  return request({
    url: '/receipt/userCaAppeal',
    method: 'put',
    data: data
  })
}

// 删除用户密保申诉
export function delUserCaAppeal(id) {
  return request({
    url: '/receipt/userCaAppeal/' + id,
    method: 'delete'
  })
}

// 导出用户密保申诉
export function exportUserCaAppeal(query) {
  return request({
    url: '/receipt/userCaAppeal/export',
    method: 'get',
    params: query
  })
}